|
|
|
|
|
|
|
Adding Required and Conditional Options to the VText Control |
|
|
|
|
|
|
|
|
You can also add code to mark the data entry field as required or to set conditional requirements on fields. This was illustrated in the first part of the chapter. Listing 5.39 shows the complete general declarations section with the modifications to include the values for the required and conditional options. |
|
|
|
|
|
|
|
|
Listing 5.39. Modifying general declarations for the Required option. |
|
|
|
|
|
|
|
|
Option Explicit
' ------------------------------------------------
' KeyFilter values
'
' Event list
Public Event NumericError(KeyAscii)
Public Event DigitsError(KeyAscii)
'Default Property Values:
Const m_def_UpperCase = 0
Const m_def_Digits = 0
Const m_def_Numeric = 0
'Property Variables:
Dim m_UpperCase As Boolean
Dim m_Digits As Boolean
Dim m_Numeric As Boolean
Dim m_Text As String
' ------------------------------------------------
' CheckRange values
'
' event list
Public Event InRangeError(vValue)
' Properties
Dim m_CheckRange As Boolean
Dim m_HighValue As Variant
Dim m_LowValue As Variant
' Default Values
Const m_def_CheckRange = 0
Const m_def_LowValue = 0
Const m_def_HighValue = 0
' ------------------------------------------------
' CheckSize values
'
' event list
Public Event CheckSizeError(vValue)
' Properties |
|
|
|
|
|